﻿using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TankIt.Models;

namespace TankIt.Test
{
    [TestFixture]
    public class TankItTests
    {
        [TestCase(52, 2, Result = 1326)]
        [TestCase(6, 3, Result = 20)]
        public int CombinationTest(int TotalToChooseFrom, int Choose)
        {
            return Models.Math.Statistics.Combinations(TotalToChooseFrom, Choose);
        }

        [TestCase(Card.Suit.Clubs, Card.Value.Two, Result = Card.Value.Two)]
        [TestCase(Card.Suit.Spades, Card.Value.Eight, Result = Card.Value.Eight)]
        [TestCase(Card.Suit.Hearts, Card.Value.Ace, Result = Card.Value.Ace)]
        [TestCase(Card.Suit.Diamonds, Card.Value.Queen, Result = Card.Value.Queen)]
        public Card.Value CardValueTest(Card.Suit suit, Card.Value value)
        {
            var card = new Card(suit, value);
            return card.CValue;
        }

        [TestCase(Card.Suit.Clubs, Card.Value.Two, Result = Card.Suit.Clubs)]
        [TestCase(Card.Suit.Spades, Card.Value.Eight, Result = Card.Suit.Spades)]
        [TestCase(Card.Suit.Hearts, Card.Value.Ace, Result = Card.Suit.Hearts)]
        [TestCase(Card.Suit.Diamonds, Card.Value.Queen, Result = Card.Suit.Diamonds)]
        public Card.Suit CardSuitTest(Card.Suit suit, Card.Value value)
        {
            var card = new Card(suit, value);
            return card.CSuit;
        }
    }
}
